﻿using Estsh.Core.Model.Extend.Models;
using Estsh.Core.Models;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Estsh.Core.Model.Extend.IFModels
{
    /// <summary>
    ///月度评审结果，数据实体对象
    /// </summary>
    [Table("SAP_Month_ReviewResult")]
    [Serializable]
    public class SapMonthReviewResult
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        [Column("PARTCODE")]
        [DisplayName(" ")]
        public string partcode { get; set; }

        /// <summary>
        /// 产线名称
        /// </summary>
        [Column("PDLINENAME")]
        [DisplayName(" ")]
        public string pdlinename { get; set; }
        /// <summary>
        /// 工作中心编码
        /// </summary>
        [Column("PDLINE")]
        [DisplayName(" ")]
        public string pdline { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        [Column("CATEGORY")]
        [DisplayName(" ")]
        public string category { get; set; }


        /// <summary>
        /// SOURCE
        /// </summary>
        [Column("SOURCE")]
        [DisplayName(" ")]
        public string source { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [Column("QTY")]
        [DisplayName(" ")]
        public decimal qty { get; set; }

        /// <summary>
        /// 工艺小时产能
        /// </summary>
        [Column("CRAFTHOUR")]
        [DisplayName(" ")]
        public decimal crafthour { get; set; }
        /// <summary>
        /// 工艺工资
        /// </summary>
        [Column("CRAFTPAY")]
        [DisplayName(" ")]
        public decimal craftpay { get; set; }

        /// <summary>
        /// 实际小时产能
        /// </summary>
        [Column("REALITYHOUR")]
        [DisplayName(" ")]
        public decimal realityhour { get; set; }

        /// <summary>
        /// 实际工资
        /// </summary>
        [Column("REALITYPAY")]
        [DisplayName(" ")]
        public decimal realitypay { get; set; }
        /// <summary>
        /// 工资差异率
        /// </summary>
        [Column("PAYDIFFER")]
        [DisplayName(" ")]
        public decimal paydiffer { get; set; }
        /// <summary>
        /// 月装备能力
        /// </summary>
        [Column("MOUTHASM")]
        [DisplayName(" ")]
        public decimal mouthasm { get; set; }
        /// <summary>
        /// MOUTHPRODUCT
        /// </summary>
        [Column("MOUTHPRODUCT")]
        [DisplayName(" ")]
        public decimal mouthproduct { get; set; }
        /// <summary>
        /// 近3月平均月需求
        /// </summary>
        [Column("REQUEST3MOHTH")]
        [DisplayName(" ")]
        public decimal request3mohth { get; set; }
        /// <summary>
        /// 销售需求系数
        /// </summary>
        [Column("SALEREQUESTCO")]
        [DisplayName(" ")]
        public decimal salerequestco { get; set; }
        /// <summary>
        /// 销售净需求
        /// </summary>
        [Column("SALENETDEMAND")]
        [DisplayName(" ")]
        public decimal salenetdemand { get; set; }
        /// <summary>
        /// 首次计算生产工时
        /// </summary>
        [Column("FIRSTSUMPRODUCT")]
        [DisplayName(" ")]
        public decimal firstsumproduct { get; set; }
        /// <summary>
        /// 最大生产量（6月需求量）
        /// </summary>
        [Column("MAXPRODUCTQTY")]
        [DisplayName(" ")]
        public decimal maxproductqty { get; set; }

        /// <summary>
        /// 最终生产计划
        /// </summary>
        [Column("LASTPRODUCTPLAN")]
        [DisplayName(" ")]
        public decimal lastproductplan { get; set; }
        /// <summary>
        /// 最终生产所需工时
        /// </summary>
        [Column("LASTPRODUCTHOUR")]
        [DisplayName(" ")]
        public decimal lastproducthour { get; set; }
        /// <summary>
        /// 最终生产产能负荷
        /// </summary>
        [Column("LASTPRODUCTLOAD")]
        [DisplayName(" ")]
        public decimal lastproductload { get; set; }
        /// <summary>
        /// 最终生产产值
        /// </summary>
        [Column("LASTPRODUCTVALUE")]
        [DisplayName(" ")]
        public decimal lastproductvalue { get; set; }
        /// <summary>
        /// 最终生产所需人数
        /// </summary>
        [Column("LASTPRODUCTPEOPLE")]
        [DisplayName(" ")]
        public decimal lastproductpeople { get; set; }
        /// <summary>
        /// 做/不做
        /// </summary>
        [Column("ISEXECT")]
        [DisplayName(" ")]
        public bool isexect { get; set; }
        /// <summary>
        /// 即时库存
        /// </summary>
        [Column("REALTIMESTOKC")]
        [DisplayName(" ")]
        public decimal realtimestokc { get; set; }
        /// <summary>
        /// 当年出库平均价
        /// </summary>
        [Column("AGVOUTPRICE")]
        [DisplayName(" ")]
        public decimal agvoutprice { get; set; }
        /// <summary>
        /// 总人数工时
        /// </summary>
        [Column("SUMPEOPLEHOUR")]
        [DisplayName(" ")]
        public decimal sumpeoplehour { get; set; }

        /// <summary>
        /// Y：启用 N：禁用
        /// </summary>
        [Column("ENABLED")]
        [DisplayName(" ")]
        public string ENABLED { get; set; }
    }



}